<%-- 
    Document   : Error
    Created on : 24/04/2011, 05:25:44 PM
    Author     : Jhon
--%>

<%@page import="java.util.List"%>
<%@page import="control.Controller"%>
<%@page import="vo.VOUser"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="HTML.*"%>
<%@include file="CheckSession.jsp"%>
<% HtmlBody b = new HtmlBody("Error","");
   VOUser a = (VOUser) session.getAttribute("USER");
   if(a.isIsAdmin()){
   b.addUsuario(a.getHandle(), "Administrator");
   }else{
   b.addUsuario(a.getHandle(), "User");
   }
   HtmlSideBar s = new HtmlSideBar(true);
   String error = (String) session.getAttribute("ERROR");
   HtmlContent c = new HtmlContent("Error in: "+error);
   b.addContent(c.getContent());
   b.addSideBar(s.getBar());
    %>

    <%=b.getHtml()%>
